<link href="__CDN__/assets/addons/qingdongwms/css/common.css?v={$Think.config.site.version}" rel="stylesheet">

<style type="text/css">
    .btn-list {
        position: fixed;
        right: 40px;
    }
    .div-flex {
        display: flex
    }
    .div-flex .form-group {
        margin-right: 50px;
        text-align: center;
        line-height: 25px;
        margin-bottom: 0;
    }
    .tab-pane {
        border: 1px solid #F6F6F6;
    }
    .i-color {
        font-size: 34px;margin-right: 10px;color: #86C3FF;
    }
    .thumbnail {
        display: flow-root;
        width: max-content;
    }
    .thumbnail img {
        width: 50px;
        float: left;
        padding: 5px;
    }
    .text-color{
        color:#777;
    }
</style>
<style type="text/css">
    .examine_title{
        font-size: 14px;
        color: #333;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        display: block;
        height: 30px;
    }
    .examine_box{
        padding-left:20px;
        position: relative;
    }
    .examine_box .newicon{
        position: absolute;
        left:0;
        top:0;
        z-index: 2;
    }
    .examine_box .xian{
        width:1px;
        height:100%;
        background:#e6e6e6;
        position: absolute;
        left:4px;
        top:10px;
        z-index: 1;
    }
    .examine_box .examine_bg{
        position: relative;
        margin-top: 15px;
        border-radius: 4px;
        background-color: #f7f8fa;
        font-size: 12px;
        color: #929293;
        padding: 8px;
        line-height: 18px;
    }
    .rowbox{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .stafflist{
        width: 70px;text-align: center;float: left;
    }
    .stafflist-right{
        width: 30px;text-align: center;float: left;margin: 0 20px;

    }
    .stafflist-right:last-child{
        display: none;
    }
    .stafflist img{
        width: 40px;
        height: 40px;
        margin: 10px;
        border-radius:50%;
    }
</style>

<div class="panel panel-default panel-intro">
    <input type="hidden" name="ids" id="ids" value="{$ids}"/>
    <div class="div-flex">
        <i class="fa fa-address-card i-color"></i>
        <div style="line-height: 35px"><b>{$row.num}</b>      </div>

        <input type="hidden" value="{$row.id}" id="instockId">
    </div>

    <div style="margin-top: 10px">
    </div>

    <div class="div-flex" style="margin-top: 20px">
        <div class="form-group">
            <span class="text-muted">采购单编号</span>
            <p>{$row.num}</p>
        </div>
        <div class="form-group">
            <span class="text-muted">采购单金额（元）</span>
            <p>{$row.money}</p>
        </div>
        <div class="form-group">
            <span class="text-muted">负责人</span>
            <p>{$row.owner_staff.name}</p>
        </div>
    </div>
    <div>

        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#basic" aria-controls="profile" role="tab" data-toggle="tab">基本信息</a></li>
            <li role="presentation"><a href="#product" aria-controls="profile" role="tab" data-toggle="tab">产品明细</a></li>
        </ul>

        <div class="tab-content" style="overflow-y: scroll;height:565px">
            <div role="tabpanel" class="tab-pane fade panel-body form-horizontal  active in" id="basic">
                <div class="form-group">
                    <div class="col-xs-6 col-sm-6">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">采购单编号:</span>
                            {$row.num}
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-6">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">采购单金额:</span>
                            {$row.money}
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-6">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">采购日期:</span>
                            {$row.date}
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-6">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">供应商:</span>
                            {$row.supplier}
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-6">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">创建时间:</span>
                            {$row.createtime}
                        </div>
                    </div>

                </div>
            </div>

            <div role="tabpanel" class="tab-pane fade panel-body" id="product">
                <div id="toolbar_product" class="toolbar">
                    {:build_toolbar('refresh')}
                </div>
                <table id="operation_product" class="table table-striped table-bordered table-hover table-nowrap"
                       width="100%">
                </table>
            </div>


        </div>

    </div>
</div>